package org.aiforum.frountend.common;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

/**
 * 响应对象帮助类
 * @author JAVA
 *
 */
public class Responsehelper {
	
	public static void print(String url, HttpServletResponse response){
		String script = "<script>window.location.href='" + url + "';</script>";
		try {
			response.setContentType("text/html;charset=UTF-8");
			response.getWriter().print(script);
			response.getWriter().flush();
			response.getWriter().close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
